package com.suray.basic.wcs.plc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suray.basic.wcs.plc.entity.PlcLogDB;
import jdk.internal.dynalink.linker.LinkerServices;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface PlcLogMapper extends BaseMapper<PlcLogDB> {
    List<PlcLogDB> getPlcLogs(PlcLogDB plcLogDB);

    void deleteThreeDaysPlcLog(@Param("days")Integer days, @Param("time")Date time);

    void cleanPlcLog();
}
